<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="shortcut icon " type="images/x-icon" href="/static/images/favicon.ico">
    <title>无锡虹桥医院--体检系统</title>
    <style>
        *{
            background-color: white
        }
    </style>
</head>
<body>
    <hr width="100%"/>
    <div style="width: 100%">
    <h2 style="text-align: center">体检报告</h2>
    <table width="100%" style="" border="0" cellspacing="1" cellpadding="1">
        <tr>
            <td width="60%" colspan="2" ><strong>人员编号: </strong><u>
                    <#if bgd.bhkcod ??>
                         ${bgd.bhkcod}
                    </#if>
                </u></td>
            <td width="40%" colspan="2" ><strong>姓名: </strong><u>
                    <#if bgd.name ??>
                    ${bgd.name }</#if></u></td>
        </tr>
        <tr>
            <td colspan="2" ><strong>体检日期：</strong><u>${bgd.bhkdat!}</u></td>
            <td  colspan="2"><strong>单位：</strong><u>${bgd.crptnam!}</u></td>
        </tr>
        <tr>
            <td colspan="2" ><strong>身份证号: </strong><u>${bgd.idc!}</u></td>
            <td colspan="2" ><strong>性别：</strong><u>${bgd.sex!}</u></td>
        </tr>
        <tr>
            <td  colspan="2"><strong>年龄：</strong><u>${bgd.age!}</u><strong>岁</strong></td>
            <td  colspan="2"><strong>体检类型：</strong>
               <u>${bgd.wrkstanam!}</u></td>
        </tr>
            <td colspan="2"><strong>部门：</strong>
               <u>
                   <#if bgd.dpt??>
                   ${bgd.dpt}</#if></u></td>
            <td colspan="2"><strong>工号:</strong>
               <u>
                   <#if bgd.wrknum??>
                   ${bgd.wrknum}</#if></u>
                </td>
        </tr>
        <tr>
            <td colspan="2"><strong>总工龄：</strong><u>
                    <#if bgd.WRKLNT??>
                        ${bgd.WRKLNT}
                        <#else >
                        0
                    </#if>年
                    <#if bgd.WRKLNTMONTH??>
                        ${bgd.WRKLNTMONTH}
                    <#else >
                        0
                    </#if>月
                </u></td>
            <td colspan="2"><strong>接害工龄：</strong><u>
                    <#if bgd.TCHBADRSNTIM??>
                    ${bgd.TCHBADRSNTIM}
                <#else >
                    0
                    </#if>年
                    <#if bgd.TCHBADRSNMONTH??>
                    ${bgd.TCHBADRSNMONTH}
                <#else >
                    0
                    </#if>月
                </u></td>
            </tr>
        <tr>
            <td colspan="4"><strong>接触有害因素：</strong><u>
                    <#if bgd.TCHBADRSN??>
                        ${bgd.TCHBADRSN}
                    </#if>
                </u></td>
        </tr>
        <tr><td colspan="4"><b>一、职&nbsp;业&nbsp;史</b></td></tr>
        <tr>
            <#if eh??&&(eh?size>0)>
                <td colspan="4">
                    <table width="100%">
                        <tr>
                            <td width="12%" align="center" bgcolor="#CCCCCC" style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;"><strong>起止日期</strong></td>
                            <td width="18%" align="center" bgcolor="#CCCCCC" style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;"><strong>工作单位</strong></td>
                            <td width="30%" align="center" bgcolor="#CCCCCC" style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;"><strong>接触有害因素种类、名称</strong></td>
                            <td width="12%" align="center" bgcolor="#CCCCCC" style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;"><strong>防护措施</strong></td>
                        </tr>
                        <#list eh as eh>
                            <tr>
                                <td style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;">${eh.STRSTPDAT!}</td>
                                <td  style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;">${eh.WRKUNT!}</td>
                                <td  style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;">${eh.BADRSN!}</td>
                                <td style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;">${eh.SFQ!}</td>
                            </tr>
                        </#list>
                    </table>
                </td>
            <#else>
                <td colspan="4" style="">无记录</td>
            </#if>
        </tr>
        <tr><td colspan="4"><b>二、既往病史</b></td></tr>
        <tr>
            <#if pmh ?? &&(pmh?size>0)>
                <td colspan="4">
                    <table width="100%" border="0" cellpadding="0"  bordercolor="#000000" cellspacing="0px" style="border-collapse:collapse; border:1px solid;">
                        <tr>
                            <td width="" align="center" bgcolor="#CCCCCC" style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;"><strong>疾病名称</strong></td>
                            <td width="" align="center" bgcolor="#CCCCCC" style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;"><strong>诊断日期</strong></td>
                            <td width="" align="center" bgcolor="#CCCCCC" style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;"><strong>诊断单位</strong></td>
                            <td width="" align="center" bgcolor="#CCCCCC" style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;"><strong>治疗经过</strong></td>
                            <td width="" align="center" bgcolor="#CCCCCC" style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;"><strong>转归</strong></td>
                        </tr>
                        <#list pmh as pmh>
                            <tr>
                                <td style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;" >${pmh.HSTNAM!}</td>
                                <td style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;">${pmh.HSTDAT!}</td>
                                <td style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;">${pmh.HSTUNT!}</td>
                                <td style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;">${pmh.HSTCRUPRC!}</td>
                                <td style="BORDER-bottom: black 1px solid;BORDER-right: black 1px solid;">${pmh.HSTLPS!}</td>
                            </tr>
                        </#list>
                    </table>
                </td>
                <#else >
                    <td colspan="4">无记录</td>
            </#if>
        </tr>
        <tr>
            <td colspan=""><b>三、经期史</b></td>
            <td colspan="3">
                <#if mh ?? &&(mh?size>0)>
                    <#list mh as mh>
                        初潮:<u>${mh.MNRAGE! "/"}</u>岁&nbsp;&nbsp;经期:<u>${mh.MNS! "/"}</u>天&nbsp;&nbsp;周期:<u>${mh.CYC! "/"}</u>天&nbsp;&nbsp;停经年龄:<u>
                        ${mh.MNLAGE! "/"}</u>岁&nbsp;&nbsp;是否经期:<u>${mh.MNRAGE! "/"}</u>
                    </#list>
                <#else >
                    <u>无记录</u>
                </#if>
            </td>
        </tr>
        <tr>
            <td><b>四、生&nbsp;育&nbsp;史</b></td>
            <td colspan="3">
                <#if bh?? &&(bh?size>0)>
                    <#list bh as bh>
                    现有子女<u>
                    ${bh.CHLDQTY! "/"}</u>人、流产<u>
                    ${bh.ABRQTY! "/"}</u>次、早产<u>
                    ${bh.SLNKQTY! "/"}</u>次、死产<u>
                    ${bh.STLQTY! "/"}</u>次、异常胎<u>
                    ${bh.TRSQTY! "/"}</u>次
                    </#list>
                    <#else >
                    <u>无记录</u>
                </#if>

            </td>
        </tr>
        <tr>
            <td><b>五、烟 酒 史</b></td>
            <td colspan="3">
                <#if zh??&&(zh?size>0)>
                    <#list zh as zh>
                        <u>
                            ${zh.SMKSTA!"/"}
                        </u>、<u>
                        ${zh.SMKDAYBLE!"/"}
                    </u>支/天、共<u>
                        ${zh.SMKYERQTY!"/"}
                    </u>年&nbsp;&nbsp;<u>
                        ${zh.WINSTA!"/"}
                    </u>、<u>
                        ${zh.WINDAYMLX!"/"}
                    </u>ml/日、共<u>
                       ${zh.WINYERQTY!"/"}
                    </u>年
                    </#list>
                    <#else >
                    <u>无记录</u>
                </#if>
            </td>
        </tr>
        <tr>
            <td ><b>六、其他</b></td>
            <td>
                <#if zh?? &&(zh?size>0)>
                    <#list zh as zh>
                        <u>${zh.OTH!}</u>
                    </#list>
                    <#else >
                    <u>无记录</u>
                </#if>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <h4>七、检查详情</h4>
            </td>
        </tr>
    </table>
        <table width="100%">
            <tr id="tt">
                <td  width="100%">
                    <table width="100%"  cellspacing="0"  style="margin:0px;padding: 0;border : yellow dashed 1px;" border="0 yellow dashed">
                        <thead>
                        <th >项目分类</th>
                        <th >项目名称</th>
                        <th width="">项目结果</th>
                        <th>参考值</th>
                        </thead>
                        <#list li1 as li1 >
                            <tr style="border: 1px;">

                                <td><#if li1.xmlb??> ${li1.xmlb}</#if></td>
                                <td width="100px">${li1.xmNam}</td>
                                <td >${li1.res}
                                    <#if li1.max ?? && li1.min??>
                                        <#if li1.cgzs??>
                                            <#if li1.res!='-'>
                                            <#if (li1.cgzs > li1.max) >
                                                <b style="color: red">↑</b>
                                            <#elseif (li1.cgzs < li1.min)>
                                                <b style="color: red">↓</b>

                                            </#if>

                                            </#if>
                                        </#if>
                                    </#if>

                                </td>
                                <td style="font-size: 12px"><#if li1.cgz??>
                                        ${li1.cgz}
                                    </#if>
                                </td>
                            </tr>
                        </#list>
                        <#list li2 as li2 >
                            <tr style="border: 1px;">
                                <td><#if li2.xmlb??> ${li2.xmlb}</#if></td>
                                <td width="30%">${li2.xmNam!}</td>
                                <td width="40%">${li2.res!}
                                    <#if li2.max ?? && li2.min??>
                                        <#if li2.cgzs??>
                                            <#if (li2.cgzs > li2.max) >
                                                <b style="color: red">↑</b>
                                            <#elseif (li2.cgzs < li2.min)>
                                                <b style="color: red">↓</b>
                                                <#elseif li2.res=='-'>
                                            </#if>
                                        </#if>
                                    </#if>
                                </td>
                                <td style="font-size: 12px">
                                    <#if li2.cgz??>
                                        ${li2.cgz}
                                    </#if>
                                </td>
                            </tr>
                        </#list>
                    </table>
                </td>
            </tr>
            <tr style="width: 693px">
                <td width="100%" colspan="2" style="background-color: grey">
                结论及建议
                </td>
            </tr>
            <tr style=" width: 100%">
                <table>
                    <tr>
                        <td style="font-size: 13px"><#if bgd.tjjg ??>
                                ${bgd.tjjg}
                            </#if><br/>
                            <#if bgd.jy ??>
                                ${bgd.jy}
                            </#if></td>
                    </tr>
                </table>
            </tr>
        </table>
    </div>
<script>

    /* 长宽占位 rem算法, 根据root的rem来计算各元素相对rem, 默认html 320/20 = 16px */
    function placeholderPic(){
        var w = document.documentElement.offsetWidth;
        document.documentElement.style.fontSize=w/40+'px';
    }
    placeholderPic();
    window.onresize=function(){
        placeholderPic();
    }
</script>
</body>
</html>